<?php


namespace Modules\Common\Helpers\Traits\QueryBuilder;


trait Includes {
    protected $qb;

    protected function aIncludes($includes = [], bool $replace = false): self {
        $this->qb = $this->qb->allowedIncludes($replace ? $includes : array_merge([
                                                                                      'addresses', 'address', 'articles', 'category', 'user',
                                                                                      'nurserySchoolTeacher', 'homeNurseryTeacher',
                                                                                      'nurserySchool', 'order', 'paymentOrder', 'city.province',
                                                                                      'address.city.province', 'children.children', 'parent',
                                                                                  ], $includes));
        return $this;
    }
}
